package server.qiang.test;

import server.qiang.email.MultiMailsender;
import server.qiang.email.MultiMailsender.MultiMailSenderInfo;

public class testSendMail {
	public static void main(String[] args) {
		//这个类主要是设置邮件
		MultiMailSenderInfo mailInfo = new MultiMailSenderInfo();

		mailInfo.setMailSender("smtp.qq.com", "957296869@qq.com", "pcq325=118", "13570212273@163.com");
		mailInfo.setMailContents("test100", "测试");


		//String[] receivers = new String[]{"13570212273@163.com"};
		// mailInfo.setReceivers(receivers);

		//这个类主要来发送邮件
		MultiMailsender sms = new MultiMailsender();
		sms.sendTextMail(mailInfo);//发送文体格式


		//MultiMailsender.sendMailtoMultiReceiver(mailInfo);//发送html格式
		//MultiMailsender.sendMailtoMultiCC(mailInfo);//
	}

}
